/**
 * 
 */
var path = "/OA";
$(function(){
	$("#btn").click(function(){
		alert("你好");
		$.ajax({
			url :path + "/reply/addReply",
			data:{
				"title":$("#title").val() , "content" : $("#content").val() ,
				 "topicid":$("#topicid").val(),
				"authorid":$("#authorid").val(),"topicTitle":$("#topicTitle").val()
				},
			dataType:"json",
			error:function(){
				layer.alert("系统错误");
			},
			success:function(data){
				console.log(data);
				if(data.success){
					layer.alert(data.message,'信息提示',function(){
						location.reload();
					});
				}else{
					layer.alert(data.message);
					console.log(data);
				}
			}
		});
	});
});
